package com.example.bootdemo.controller;

import cn.hutool.core.util.ObjectUtil;
import com.example.bootdemo.entity.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/person")
public class PersonController {

    @Autowired
    Person person;

    @RequestMapping("/info")
    public String personInfo(){
        return person.toString();
    }
}
